import React, { useState, createContext } from "react";
import { Button } from "antd";
import FormCom from "./components/FormCom";
import Sidebar from "./components/Sidebar";

export const ThemeContext = createContext(0);

interface IProps {}
const App: React.FC<IProps> = () => {
    const [value, setValue] = useState(1000);
    const handleValue = () => {
        setValue(() => value + 1000);
    };
    return (
        <ThemeContext.Provider value={value}>
            <FormCom />
            <Sidebar />
            <Button onClick={handleValue}>value</Button>
        </ThemeContext.Provider>
    );
};
export default App;
